var express = require('express');

var router = express.Router();

const { login,addAdmin,getAllAdmins ,deleteAdminByID,getAdminById,updateAdmin,isLogin} = require("../controllers/admin")

router.post("/login", login)

router.post("/addAdmin", addAdmin)
router.post("/updateAdmin",updateAdmin)
router.post("/getAllAdmins", getAllAdmins)
// router.post("/changeAdminAccess", changeAdminAccess)
router.post("/deleteAdminByID",deleteAdminByID)
router.post("/getAdminById",getAdminById)
router.post('/isLogin',isLogin)


module.exports = router;
